type conflict(类型冲突):指在编程或类型系统中,不同数据类型之间发生不兼容或不匹配,导致无法安全地赋值、运算、调用函数,或引发编译/运行错误的情况。常见于静态类型语言的编译期类型检查,也可能出现在动态类型语言的运行期。
/taɪp ˈkɑːnflɪkt/
A type conflict prevents this function from compiling.
类型冲突会导致这个函数无法通过编译。
When integrating the new API, we discovered a subtle type conflict between the JSON payload and the model’s expected schema, which caused intermittent failures.
在集成新 API 时,我们发现 JSON 负载与模型期望的结构之间存在细微的类型冲突,导致间歇性故障。
type 源自希腊语 typos(“印记、模型、样式”),后来在语言学与计算机科学中引申为“类别/类型”。conflict 源自拉丁语 conflictus(“冲突、碰撞”)。合在一起,type conflict 直观表达“类型之间发生碰撞与不兼容”。